#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Description: failgroup的测试
from modules.check import Check
from modules.qaction import QAction
from modules.qanno import replicas_single, replicas_double
from modules.qbench import QBench


class QDFSFailGroup:
    def __init__(self, parse_args):
        """
        传入指令值
        :param parse_args:
        """
        self.mode = parse_args.mode
        self.point = parse_args.point
        self.replicas = parse_args.replicas
        self.failgroup = parse_args.failgroup
        self.action = QAction(parse_args)
        self.bench = QBench(parse_args)
        self.check = Check(parse_args)

    @replicas_single(order=1, description="单副本failgroup创建测试", scene="failgroup")
    @replicas_double(order=1, description="双副本failgroup创建测试", scene="failgroup")
    def test_create_failgroup(self):
        """
        failgroup 1.1测试用例，创建一组failgroup
        :return:
        """
        print("failgroup测试")
